package com.jeeplus.modules.guide.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.List;

/**
 * ClassName: BusinessAnalyze
 * Function:  预约业务分析
 * Date:      2021/7/29 15:12
 *
 * @author hanKongbin
 * version    V1.0
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@ApiModel("预约业务分析")
public class BusinessAnalyze {

    @ApiModelProperty("第一周")
    private List<Detail> firstWeek;

    @ApiModelProperty("第二周")
    private List<Detail> secondWeek;

    @ApiModelProperty("第三周")
    private List<Detail> thirdWeek;

    @ApiModelProperty("第四周")
    private List<Detail> fourthWeek;

    @ApiModelProperty("未来一周")
    private List<FutureDetail> futureWeek;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @ApiModel("前四周分析详情")
    public static class Detail {

        @ApiModelProperty("年月日")
        private String time;

        @ApiModelProperty("周几")
        private String week;

        @ApiModelProperty("办件量")
        private int count;

    }

    @EqualsAndHashCode(callSuper = true)
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @ApiModel("未来一周分析详情")
    public static class FutureDetail extends Detail {

        @ApiModelProperty("未来一周办件趋势-折线图数据")
        private int trendCount;

        public FutureDetail(String time, String week, int count, int trendCount) {
            super(time, week, count);
            this.trendCount = trendCount;
        }
    }
}
